package com.ysd.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor

@Entity
public class Statistics {
	@Id
	@GeneratedValue
	private Integer id;
	//资源编号
	@ManyToOne
	@JoinColumn(name = "read_room_id")
	private Read_room read_room;
	//使用人次
	private Integer num;
	//年
	//@DateTimeFormat(pattern = "yyyy")
	private String year;
	//月
	private String month;
	//日
	private String day;
	
	
	
}
